google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', '推測'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addColumn('number', '推測'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addColumn('number', 'iOS前月'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addColumn('number', 'iOS当月'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['1日',null,null,null,null,null,null,13,null,null,14,'UP!','ワンダーランズ×ショウタイム ワールドリンクイベント サポートガチャ: 03/01 → 03/22'], ['2日',null,null,null,null,null,null,17,null,null,17,'UP!','[小豆沢こはね]HAPPY BIRTHDAYガチャ: 03/02 → 03/08'], ['3日',null,null,null,null,null,null,24,null,null,20,null,null], ['4日',null,null,null,null,null,null,33,null,null,31,null,null], ['5日',null,null,null,null,null,null,47,null,null,41,null,null], ['6日',null,null,null,null,null,null,62,null,null,50,null,null], ['7日',null,null,null,null,null,null,76,null,null,52,null,null], ['8日',null,null,null,null,null,null,78,null,null,37,'UP!','Crown of Suitガチャ: 03/08 → 03/22'], ['9日',null,null,null,null,null,null,72,null,null,5,null,null], ['10日',null,null,null,null,null,null,71,'UP!','瞳、高みを目指してガチャ: 02/10 → 02/20',12,null,null], ['11日',null,null,null,null,null,null,17,null,null,24,'UP!','[復刻]Imperial Soldiersガチャ: 03/11 → 03/20'], ['12日',null,null,null,null,null,null,47,'UP!','[復刻]Sweet Cute Valentine!ガチャ: 02/12 → 02/21',16,null,null], ['13日',null,null,null,null,null,null,34,null,null,23,null,null], ['14日',null,null,null,null,null,null,55,null,null,39,null,null], ['15日',null,null,null,null,null,null,79,null,null,42,null,null], ['16日',null,null,null,null,null,null,94,null,null,47,null,null], ['17日',null,null,null,null,null,null,95,'UP!','[復刻]グレイス・マリアージュガチャ: 02/17 → 02/26',50,null,null], ['18日',null,null,null,null,null,null,24,null,null,32,'UP!','[復刻]さすらう隠者の道程ガチャ: 03/18 → 03/27'], ['19日',null,null,null,null,null,null,38,null,null,24,'UP!','[桃井愛莉]HAPPY BIRTHDAYガチャ: 03/19 → 03/25'], ['20日',null,null,null,null,null,null,48,'UP!','空に描く虹の魔法ガチャ: 02/20 → 02/29',27,null,null], ['21日',null,null,null,null,null,null,24,null,null,29,null,null], ['22日',null,null,null,null,null,null,42,null,null,46,'UP!','Roots in the snowガチャ: 03/22 → 03/30'], ['23日',null,null,null,null,null,null,66,null,null,15,null,null], ['24日',null,null,null,null,null,null,80,'UP!','ハピネスパッケージガチャ: 02/24 → 03/04',31,null,null], ['25日',null,null,null,null,null,null,44,null,null,53,null,null], ['26日',null,null,null,null,null,null,58,null,null,58,null,null], ['27日',null,null,null,null,null,null,67,null,null,63,null,null], ['28日',null,null,null,null,null,null,86,null,null,71,'UP!','3900\'s前夜祭ハピネスパッケージガチャ: 03/28 → 04/07'], ['29日',83,null,null,null,null,null,83,'UP!','戦の果てに待つものはガチャ: 02/29 → 03/08',46,null,null], ['30日',null,null,null,null,null,null,null,null,null,57,'UP!','3900\'sプレミアムプレゼントガチャ 3.5th ANNIVERSARY EDITION: 03/30 → 04/30'], ['31日',null,null,null,null,null,null,null,null,null,1,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, hAxis: { titleTextStyle:{italic:false}, format:'#',ticks: [1,5,10,15,20,25,30] }, vAxis: { title:'2024年3月ランキング', titleTextStyle:{italic:false}, format:'#',viewWindow:{min:0,max:100},direction:-1 }, legend: {position: 'top' }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['skyblue','pink','#2980b9','#e74c3c'] }; var chart = new google.visualization.LineChart(document.getElementById('graphField')); chart.draw(data, options); var lastlogday=31 -1 ; var lastlogcat=10; if(lastlogday>=0){ chart.setSelection([{ row: lastlogday, column: lastlogcat }]); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ //chart.setSelection(null) } }); } });